//
//  PrefixHeader.h
//  Netease
//
//  Created by 王方伟 on 2017/8/17.
//  Copyright © 2017年 wfw. All rights reserved.
//

#ifndef PrefixHeader_h
#define PrefixHeader_h

//屏幕尺寸
#define SHScreenW [UIScreen mainScreen].bounds.size.width
#define SHScreenH [UIScreen mainScreen].bounds.size.height


//字体适配
#define SHPhone6W 375.0
#define SHPhone6H 667.0
#define SHScaleX SHScreenW / SHPhone6W
#define SHScaleY SHScreenH / SHPhone6H
#define LineX(l) l*SHScaleX
#define LineY(l) l*SHScaleY
#define Font(x) [UIFont systemFontOfSize:x*SHScaleX]

//网易云
#define SHNeteaseApiURL @"https://app.netease.im/api"

#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)


//获得RGB颜色
#define SHColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define SHColorA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]

//自定义Log
#ifdef DEBUG
#define SHLog(...) NSLog(__VA_ARGS__)
#else
#define SHLog(...)
#endif


#ifdef __OBJC__
#import "DCURLRouter.h"
#import "SHDefintionConst.h"
#import "UIView+Extension.h"
#import "SVProgressHUD+Extension.h"
#import "NIMKit.h"
#endif
#endif /* PrefixHeader_h */
